﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using System.Windows.Forms;
namespace QuanLiBongDa.DataAccessLayer
{
    class LoaiCauThuDAO
    {
        public static LoaiCauThuDAO CreateLoaiCauThu()
        {
            return new LoaiCauThuDAO();
        }
        public DataTable TimMLCT_Ten(string tenloai)
        {
            SqlParameter[] par = new SqlParameter[1];
            par[0] = new SqlParameter("@TenLCT",tenloai);
            return SQLService.FillTable("TimMLCT_Ten",par);
        }
        public void MaLCT(ComboBox malct)
        {
            SqlDataReader dr = SQLService.mExecuteReader(SQLService.ReturnAll("LOAICAUTHU"));
            while (dr.Read())
            {
                malct.Items.Add(dr["TenLCT"]);
            }
        }
    }
}
